import React, { Component } from 'react';
import {ConnectedRouter} from 'react-router-redux';
import {
  BrowserRouter as Router,
  Route,
  Switch
} from 'react-router-dom';
import {User,Dept,NotFound} from './containers';
class App extends Component{
    render(){
        return (
            // <ConnectedRouter history={history}>
            <Router>
            <div>
                <Switch>
                <Route exact path="/user" component={User} />
                <Route exact path="/dept" component={Dept} />
                <Route path="*" component={NotFound} />
                </Switch>
            </div>
            </Router>
            // </Router>
        )
    }
}
export default App;